package com.jic.member.mapper;

import com.jic.member.entity.MememberIntegralExchangeCoupon;
import com.jic.member.response.MememberIntegralRuleResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 会员积分规则兑换优惠券红包表
 * @author : 
 * @email : 
 * @since : 2020-04-02 03:30:16
 * @version : v1.0.0
 */
@Mapper
public interface  MememberIntegralExchangeCouponMapper {

    long insert(MememberIntegralExchangeCoupon mememberIntegralExchangeCoupon);

    long delete(Long id);

    long update(MememberIntegralExchangeCoupon mememberIntegralExchangeCoupon);

    MememberIntegralExchangeCoupon queryByPrimaryKey(Long id);

    List<MememberIntegralExchangeCoupon> query(MememberIntegralExchangeCoupon mememberIntegralExchangeCoupon);

    List<MememberIntegralExchangeCoupon> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("mememberIntegralExchangeCoupon") MememberIntegralExchangeCoupon mememberIntegralExchangeCoupon);

    long queryPageCount(MememberIntegralExchangeCoupon mememberIntegralExchangeCoupon);

    MememberIntegralExchangeCoupon queryByRuleId(Long ruleId);

    MememberIntegralRuleResponse queryMememberIntegralExchangeCouponByRuleId(@Param("ruleId") Long ruleId);
}